package com.topwalk.datacollect.dao.imp;

import com.topwalk.datacollect.dao.TZcTaskInfoDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public class TZcTaskInfoDaoImpl implements TZcTaskInfoDao {
    @Autowired
    private JdbcTemplate jdbcTemplate;

    @Override
    public List<Map<String, Object>> findByTaskId(String taskId) {
        String sql = "select platID,innerLinkID linkID,bizID from t_zc_taskinfo where taskID = ?";
        return jdbcTemplate.queryForList(sql,taskId);
    }
}
